<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>新增菜单</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
	<script type="text/javascript" src="<%=path %>/js/sysmgr/menu/menuEdit.js"></script>
  </head>
  <body>
	<div class="editpage-locked-content">
		<h2 class="editpage-lk-title" >新增菜单</h2>
		<div class="editpage-lk-tbar" id="tbarWrap"></div>
	</div>
	<div class="editpage-content" >
		<div class="editpage-form" id="formWrap"></div>
	</div> 
	
  </body>
</html>

	<ui:page>
	
	<ui:toolbar  id="toolbar"  renderTo="tbarWrap" >
		<x:items>
			<ui:button text="保存" iconCls='icon-save'  handler="MenuEdit.submitForm" scope="MenuEdit"   />
			<x:value>-</x:value>
			<ui:button text="取消" iconCls='icon-cancel' handler="MenuEdit.close" scope="MenuEdit" />
			<x:value>-</x:value>
		</x:items>
	</ui:toolbar>
	
	<ui:formPanel id="menuForm" width="600" renderTo="formWrap">
		<x:attr name="border" type="int">0</x:attr>
		<x:attr name="bodyPadding"  type="int" >5</x:attr>
		<x:attr name="fieldDefaults">
			<x:value>
				<x:attr name="labelAlign"  type="string" >right</x:attr>
			</x:value>
		</x:attr>
		<x:items>
			<x:value>
			<x:attr name="padding" type="string">2</x:attr>
				<x:attr name="layout">column</x:attr>
				<x:attr name="border" type="int" >0</x:attr>
				<x:attr name="items" type="array">
				<ui:formPanel.text id="MENU_NAME" fieldLabel="菜单名称" allowBlank="false" />
				<ui:formPanel.text id="MENU_CODE" fieldLabel="菜单编码" allowBlank="false" />
				</x:attr>
			</x:value>
			<x:value>
				<x:attr name="padding" type="string">2</x:attr>
				<x:attr name="layout">column</x:attr>
				<x:attr name="border" type="int" >0</x:attr>
				<x:attr name="items" type="array">
				<ui:formPanel.comboxstatic id="MENU_TYPE" fieldLabel="菜单类型" allowBlank="false"
					data="[['1','菜单'],['0','按钮']]">
				</ui:formPanel.comboxstatic>
				<ui:formPanel.text id="MENU_IMG_CLS" fieldLabel="样式"/>
				</x:attr>
			</x:value>
			<x:value>
				<x:attr name="padding" type="string">2</x:attr>
				<x:attr name="layout">column</x:attr>
				<x:attr name="border" type="int" >0</x:attr>
				<x:attr name="items" type="array">
				<ui:formPanel.text id="MENU_URL" fieldLabel="菜单URL"  width="510" />
				</x:attr>
			</x:value>
			<x:value>
				<x:attr name="padding" type="string">2</x:attr>
				<x:attr name="layout">column</x:attr>
				<x:attr name="border" type="int" >0</x:attr>
				<x:attr name="items" type="array">
				<ui:formPanel.comboxstatic id="C_STATUS" fieldLabel="状态" allowBlank="false"
					data="[['1','启用'],['0','停用']]">
				</ui:formPanel.comboxstatic>	
				<ui:formPanel.text id="MENU_HANDLER" fieldLabel="handler"/>
				</x:attr>
			</x:value>			
			<x:value>
				<x:attr name="padding" type="string">2</x:attr>
				<x:attr name="layout">column</x:attr>
				<x:attr name="border" type="int" >0</x:attr>
				<x:attr name="items" type="array">
				<ui:formPanel.textarea id="C_REMARK" fieldLabel="备注" width="510"></ui:formPanel.textarea>
				<ui:formPanel.hidden id="MENU_ID"/>
				<ui:formPanel.hidden id="MENU_ORDER" ></ui:formPanel.hidden>
				<ui:formPanel.hidden id="MENU_PARENT_ID"  />
				</x:attr>
			</x:value>
		</x:items>
	</ui:formPanel>
	
	<x:bottomScript>
		Ext.getCmp("MENU_PARENT_ID").setValue(MenuEdit.parentId);
	</x:bottomScript>
		
	</ui:page>

	
